<?php 
/**
 * $ModDesc
 * 
 * @version		$Id: helper.php $Revision
 * @package		modules
 * @subpackage	mod_lofcoolflashnews
 * @copyright	Copyright (C) JAN 2010 LandOfCoder.com <@emai:landofcoder@gmail.com>. All rights reserved.
 * @license		GNU General Public License version 2
 */
 // no direct access
defined('_JEXEC') or die;
?>
<div id="lofslidecontent<?php echo $module->id; ?>" class="lof-slidecontent<?php echo $params->get('mod_lofslidecontent');?>" style="width:<?php echo $moduleWidth;?>px; height:<?php echo $moduleHeight?>px">
<div class="preload"><div></div></div>
 <!-- MAIN CONTENT --> 
  <div class="lof-main-wapper" style="width:<?php echo $moduleWidth;?>px; height:<?php echo $moduleHeight?>px">
  		<?php foreach( $list as $key=> $row ) :  ?>
        <div class="lof-main-item">
        	<?php echo $row->mainImage ; ?>
            <div class="lof-main-item-desc">
                <h3><a target="_<?php echo $openTarget;?>" title="<?php echo $row->title;?>" href="<?php echo $row->link?>"><?php echo $row->subtitle; ?></a></h3>
                <p><?php echo $row->description; ?></p>
             </div>
        </div> 
        <?php endforeach; ?>	
  </div>
  <!-- END MAIN CONTENT --> 
  <?php if( $params->get('display_button',1) ):  ?>
  <!-- NAVIGATOR -->
  <div class="lof-navigator-outer">
  		<ul class="lof-navigator">
        	<?php foreach( $list as $key => $row ) :  ?>
        	<li class="lof-navigator-item hasLofTip" title="<?php echo modLofCoolFlashNews::substring($row->title, 28); ?>::<?php echo htmlspecialchars($row->thumbnail); ?>">
            	<span><?php echo $key+1; ?></span>
            </li>
        	<?php endforeach; ?>	
        </ul>
  </div>
  <!-- END NAVIGATOR -->
  <?php endif; ?>
</div>
